import request from '@/utils/request'

export function getByParam(data) {
  return request({
    url: '/movie/getByParam',
    method: 'get',
    params: data
  })
}

export function getByCategory(data) {
  return request({
    url: '/movie/getByCategory',
    method: 'get',
    params: data
  })
}

export function getById(id) {
  return request({
    url: '/movie/getById/'+id,
    method: 'get'
  })
}

export function report(id) {
  return request({
    url: '/movie/report/'+id,
    method: 'post'
  })
}

export function getMovieImgs(id) {
  return request({
    url: '/movieImg/getByMovieId/'+id,
    method: 'get'
  })
}

export function checkCollection(movieId) {
  return request({
    url: '/movie/checkCollection/'+movieId,
    method: 'get'
  })
}
